/*
 * @Author: your name
 * @Date: 2020-08-26 09:51:43
 * @LastEditTime: 2020-08-28 11:27:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \tinkjsDemo\test\extend.js
 */
function aaa(name,age){
    this.name = name;
    this.age=age;
    this.a1=function(){
        console.log(this.name)
    }
}

function bbb(name,age){
    console.log('arguments:',arguments);
    aaa.apply(this,arguments);
}

const c = new bbb('bbb',21);

c.a1();

// var dd={
//     a:'aaa'
// }

// var cc = dd&& dd.a;
// console.log(cc);
// if(cc){
//     delete dd.a;
// }
// console.log('222:',cc);
// console.log('dd:',dd);


var my_data={
    a:'aaaaa',
    b:'bbbbb',
    c:'ccccc',
}

// for(var key of my_data){
//     console.log(my_data[key]);
// }

// foreach(my_data as key=>value){

// }